-- GENERATED SPELL FOR [Lightning Hide] --


function spell0_3131(pUnit, Event) --@Lizard Bolt,n/a--
pUnit:FullCastSpellOnTarget(5401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3131', 2000, 1)
end

function Sorts_3131(pUnit, Event)
local choix_sorts_3131 = math.random(0, 0)
if choix_sorts_3131 == 0 then
pUnit:RegisterEvent('spell0_3131', 1, 1)
end
end

function mob3131_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3131', math.random(1500, 3000), 1)
end

function mob3131_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3131_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3131_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3131, 1, 'mob3131_Action')
RegisterUnitEvent(3131, 2, 'mob3131_Leave')
RegisterUnitEvent(3131, 3, 'mob3131_Kill')
RegisterUnitEvent(3131, 4, 'mob3131_Die')
